﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AL100.BankApplication.BLL
{
    /// <summary>
    /// Static class used to provide values to the account classes.
    /// </summary>
    public static class AccountValuesProvider
    {
        /// <summary>
        /// Gets the overdrawn limit.
        /// </summary>
        /// <param name="account">The account.</param>
        /// <returns>the overdrawn limit</returns>
        public static double GetOverdrawnLimit(AccountBase account)
        {
            double result = 0;

            if (account is SimpleAccount)
            {
                result = 100;   
            }
            if (account is SilverAccount)
            {
                result = 1000;
            }
            if (account is GoldAccount)
            {
                result = 10000;
            }

            return result;

        }
    }
}
